package com.group4.rbac.service;

import com.group4.rbac.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.study.util.ResponseResult;

import java.util.List;

/**
 * <p>
 * 权限 服务类
 * </p>
 *
 * @author cloud
 * @since 2022-03-10
 */
public interface PermissionService extends IService<Permission> {
    /**
     * 修改权限
     * @param permission
     * @return
     */
    ResponseResult<Permission> update(Permission permission);

    /**
     * 增加权限
     * @param permission
     * @return
     */
    ResponseResult<Permission> add(Permission permission);

    /**
     * 权限菜单
     * @return
     */
    List<Permission> order();

}
